<!DOCTYPE html>
<html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>docker镜像管理</title>
    <link th:href="@{/layui/css/layui.css}" rel="stylesheet" />
</head>
<body>
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo layui-hide-xs layui-bg-black">docker镜像仓库</div>
        <!-- 头部区域（可配合layui 已有的水平导航） -->
        <ul class="layui-nav layui-layout-left">
            <!-- 移动端显示 -->
            <li class="layui-nav-item layui-show-xs-inline-block layui-hide-sm" lay-header-event="menuLeft">
                <i class="layui-icon layui-icon-spread-left"></i>
            </li>
            <li class="layui-nav-item layui-hide-xs"><a href="javascript:;" tab-id="repository">仓库管理</a></li>
            <li class="layui-nav-item layui-hide-xs"><a href="javascript:;" tab-id="image">镜像管理</a></li>
            <li class="layui-nav-item">
                <a href="javascript:;">其他</a>
                <dl class="layui-nav-child">
                    <dd><a href="https://github.com/DemoMeng">关于大拿</a></dd>
                    <dd><a href="https://gitee.com/DemoMeng">休闲一下</a></dd>
                    <dd><a href="https://demomeng.github.io">更多资料</a></dd>
                </dl>
            </li>
        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item layui-hide layui-show-md-inline-block">
                <a href="javascript:;">
                    <img src="https://avatars.githubusercontent.com/u/22184109?v=4" class="layui-nav-img">
                    蒙大拿
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="https://github.com/DemoMeng">关于大拿</a></dd>
                    <dd><a href="https://github.com/DemoMeng">拜拜</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item" lay-header-event="menuRight" lay-unselect>
                <a href="javascript:;">
                    <i class="layui-icon layui-icon-more-vertical"></i>
                </a>
            </li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree" lay-filter="test">
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="" href="javascript:;">系统管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;" tab-id="system-config">配置</a></dd>
                        <dd><a href="javascript:;" tab-id="system-setting">设置</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;">账号管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;" tab-id="account-list">列表</a></dd>
                        <dd><a href="javascript:;" tab-id="account-detail">详情</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item"><a href="javascript:;" tab-id="log">日志管理</a></li>
                <li class="layui-nav-item"><a href="" tab-id="role">角色管理</a></li>
            </ul>
        </div>
    </div>

    <div class="layui-body">
        <iframe id="frameAdmin" style="padding-left:10px;width: 95%;height: 95%" frameborder="0" src="" data-url="https://demomeng.github.io/"></iframe>
    </div>
    <div class="layui-footer">
        <!-- 底部固定区域 -->
        © copyRight - power by mqz
    </div>
</div>
<script th:src="@{/layui/layui.js}"></script>
<script>
    //JS
    layui.use(['element', 'layer', 'util'], function(){
        var element = layui.element
            ,layer = layui.layer
            ,util = layui.util
            ,$ = layui.$;

        layui.$(document).on('click', 'a', function () {
            let layId = $(this).attr("tab-id");
            let text = $(this).text();
            let dataUrl = $(this).attr("data-url");
            if("account-list" == layId){
                layer.open({
                    type: 1
                    ,content: "<b>该功能暂为开通，是否催更？</b>"
                    ,area: ['350px', '250px']
                    ,offset: 'auto' //右上角
                    ,anim: 2
                    ,shadeClose: true
                });
            }
            if("account-detail" == layId){
                layer.msg('正在开发中...', {icon: 6});
            }
            if("repository" == layId){
                $("#frameAdmin").attr("src","/index/repository");
            }
            if("image" == layId){
                $("#frameAdmin").attr("src","/index/image");
            }


        });






        //头部事件
        util.event('lay-header-event', {
            //左侧菜单事件
            menuLeft: function(othis){
                layer.msg('展开左侧菜单的操作', {icon: 0});
            }
            ,menuRight: function(){
                layer.open({
                    type: 1
                    ,content: '<div style="padding: 15px;">处理右侧面板的操作</div>'
                    ,area: ['260px', '100%']
                    ,offset: 'rt' //右上角
                    ,anim: 5
                    ,shadeClose: true
                });
            }
        });

    });
</script>
</body>
</html>